package homework;

import java.util.Scanner;

public class Homework1 {

	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		System.out.println("输入任意一个姓名：");
		String name = input.next();
		String surname = name.substring(0, 1);
		String forename = name.substring(1);
		System.out.println("姓氏：" + surname);
		System.out.println("名字：" + forename);
	}
}
